<template>
  <div class="tag">
    <div class="btns">
      <div v-for="(item, index) in tags" :key="index" class="btn" :class="activeIndex == index ? 'active_btn' : ''" @click="$emit('selectTag', index)">{{item.name}}</div>
    </div>
    
  </div>
</template>
<script>
export default {
  props: {
    tags: Array,
    activeIndex: Number
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
  filters: {},
  components: {}
};
</script>

<style lang="less" scope>
@import "./index.less";
</style>
